<template>
  <div>
    详情
    <p>{{ $route.params.id }}</p>
  </div>
</template>

<script lang="ts" setup>
useHead({
  title: "详情",
});
// 获取params参数
const route = useRoute();
console.log(route.params.id);
</script>

<style scoped></style>
